﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Linq.Expressions;

namespace System.Web.Mvc
{
    public static class UrlExtensions
    {
        public static string Action<TController>(this UrlHelper url,
            Expression<Action<TController>> action) where TController : Controller
        {
            return url.RouteUrl(ExpressionHelper2.GetRouteValues(action));
        }
    }
}